import 'package:json_annotation/json_annotation.dart';

part 'user.g.dart';

@JsonSerializable()
class User {
  User();

  String? accessToken;
  String? tokenType;
  String? refreshToken;
  String? userId;
  String? tenantId;
  String? oauthId;
  String? avatar;
  String? authority;
  String? userName;
  String? account;
  num? expiresIn;
  String? license;
  String? deptId;
  String? postId;
  String? deptName;
  String? postName;
  String? phone;
  String? sex;
  
  factory User.fromJson(Map<String,dynamic> json) => _$UserFromJson(json);
  Map<String, dynamic> toJson() => _$UserToJson(this);
}
